package com.yzp.controller;

import com.yzp.fegin.UserApiFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @title: FeginController
 * @Author: yzp
 * @Date: 2019/9/27 22:55
 * @Version 1.0
 */
@RestController
public class FeignController {

    @Autowired
    private UserApiFeign userApiFeign;

    @RequestMapping("/feignUser")
    public String feignMember() {
        return userApiFeign.getInfo();
    }

}
